﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Saker.Kernel.DAL;
using Saker.Kernel.Model;

namespace Saker.Kernel.BLL
{
    #region SysModuleAuthorityList业务逻辑层
	/// <summary>
	///SysModuleAuthorityList业务逻辑层
	/// </summary>
    public partial class SysModuleAuthorityListBLL
    {
         #region SysEvent业务逻辑层 自动生成
        /// <summary>
        /// 添加SysModuleAuthorityList
        /// </summary>
        /// <param name="SysModuleAuthorityList">SysModuleAuthorityList实体</param>
        /// <returns>添加后的SysModuleAuthorityList实体</returns>
        public SysModuleAuthorityList Add(SysModuleAuthorityList sysModuleAuthorityList)
        {
            return new SysModuleAuthorityListDAL().Add(sysModuleAuthorityList);
        }
        /// <summary>
        /// 根据主键删除SysModuleAuthorityList
        /// </summary>
        /// <param name="ID">ID主键</param>
        /// <returns>影响的行数</returns>
        public int DeleteByID(int iD)
        {
            return new SysModuleAuthorityListDAL().DeleteByID(iD);
        }
        /// <summary>
        /// 根据主键更新
        /// </summary>
        /// <param name="SysModuleAuthorityList">SysModuleAuthorityList实体</param>
        /// <returns>影响的行数</returns>
		public int Update(SysModuleAuthorityList sysModuleAuthorityList)
        {
            return new SysModuleAuthorityListDAL().Update(sysModuleAuthorityList);
        }
        
        /// <summary>
        /// 根据主键得到实体
        /// </summary>
        /// <param name="ID">ID主键</param>
        /// <returns>SysModuleAuthorityList实体</returns>
        public SysModuleAuthorityList GetByID(int iD)
        {
            return new SysModuleAuthorityListDAL().GetByID(iD);
        }
        /// <summary>
        /// 得到总行数
        /// </summary>
        /// <returns>总行数</returns>
		public int GetTotalCount()
		{
			return new SysModuleAuthorityListDAL().GetTotalCount();
		}
		/// <summary>
		/// 分页，仅sql 2005及以上版本使用
		/// </summary>
		/// <param name="minrownum">开始行数</param>
		/// <param name="maxrownum">结束行数</param>
		/// <returns>SysModuleAuthorityList实体集合</returns>
		public IEnumerable<SysModuleAuthorityList> GetPagedData(int minrownum,int maxrownum)
		{
			return new SysModuleAuthorityListDAL().GetPagedData(minrownum,maxrownum);
		}
        /// <summary>
        /// 分页，调用存储过程
        /// </summary>
        /// <param name="pageIndex">页码</param>
        /// <param name="recordCount">记录数</param>
        /// <param name="pageSize">每页记录数</param>
        /// <param name="pageCount">总页数</param>
        /// <param name="whereCondition">where</param>
        /// <returns>DataTable数据集</returns>
        public DataTable GetPagingRecord(int pageIndex, ref int recordCount, int pageSize, ref int pageCount,string whereCondition)
        {
            return new SysModuleAuthorityListDAL().GetPagingRecord(pageIndex, ref recordCount,pageSize,ref pageCount,whereCondition);
        }
		/// <summary>
		/// 得到所有SysModuleAuthorityList实体集合
		/// </summary>
		/// <returns>SysModuleAuthorityList实体集合</returns>
		public IEnumerable<SysModuleAuthorityList> GetAll()
		{
			return new SysModuleAuthorityListDAL().GetAll();
		}
        #endregion


        /// <summary>
        /// 根据ModuleID删除SysModuleAuthorityList
        /// </summary>
        /// <param name="ID">ID</param>
        /// <returns>影响的行数</returns>
        public int DeleteByModuleID(int moduleID)
        {
            return new SysModuleAuthorityListDAL().DeleteByModuleID(moduleID);
        }

        /// <summary>
        /// 得到所有SysModuleAuthorityList的Table
        /// </summary>
        /// <returns>所有集合</returns>
        public DataTable GetAllToTable()
        {
            return new SysModuleAuthorityListDAL().GetAllToTable();
        }

        /// <summary>
        /// 根据moduleID得到所有SysModuleAuthorityList集合
        /// </summary>
        /// <returns>所有集合</returns>
        public IEnumerable<SysModuleAuthorityList> GetAllByModuleID(int moduleID)
        {
           return new SysModuleAuthorityListDAL().GetAllByModuleID(moduleID);
        }

        /// <summary>
        /// 得到所有SysModuleAuthorityList inner join SysAuthorityDir的Table
        /// </summary>
        /// <returns>所有集合</returns>
        public DataTable GetModuleAuthorityList()
        {
            return new SysModuleAuthorityListDAL().GetModuleAuthorityList();
        }
    }
    #endregion
}
